home *** CD-ROM | disk | FTP | other *** search
/ Ray Dream Studio 5 / Ray Dream.iso / pc / DreamSDK / Windows / SAMPLES / CAMERA / CAMS / CAMSFAC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-11  |  855 b   |  35 lines

  1. /* $Id: CamSFac.h 1.1 1996/07/18 23:54:48 Damien Exp $ */
  2.  
  3. // Copyright (c) 1995, Ray Dream, Inc. All rights reserved.
  4. //
  5. // COM Example of a Spherical Camera
  6. // Class Factory
  7. //
  8.  
  9. #ifndef __CAMSFAC__
  10. #define __CAMSFAC__
  11.  
  12. #ifndef __I3DEX__
  13. #include "I3DEx.h"
  14. #endif
  15.  
  16. // Spherical Camera Class Factory :
  17. class SphereCameraClassFactory : public IClassFactory {
  18. public:
  19.   SphereCameraClassFactory(void);
  20.   ~SphereCameraClassFactory(void);
  21.  
  22.   //IUnknown members
  23.   STDMETHODIMP         QueryInterface(REFIID, LPVOID FAR*);
  24.   STDMETHODIMP_(ULONG) AddRef(void);
  25.   STDMETHODIMP_(ULONG) Release(void);
  26.  
  27.   //IClassFactory members
  28.   STDMETHODIMP         CreateInstance(LPUNKNOWN, REFIID, LPVOID FAR*);
  29.   STDMETHODIMP         LockServer(BOOL);
  30. protected:
  31.   ULONG           m_cRef;
  32.   };                         
  33.  
  34. #endif // __CAMFACT__
  35.